<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>MeMu</title>
    <link
      rel="stylesheet"
      href="https://cdn.staticfile.net/bootstrap/3.3.7/css/bootstrap.min.css"
    />
    <script src="https://cdn.staticfile.net/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.net/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  </head>

  <style>
    body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      overflow-y: auto;
      height: 91vh;
    }
    .bg-image {
      width: 100%;
      height: 100%;
      background-image: url("https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_bg.png");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: -1;
    }

    .f-view {
      color: #fff;
      height: 156px;
      width: 100%;
      position: relative;
      position: absolute;
      bottom: 4px;
    }
    .bottom-top {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-left: 10px;
      left: 50%;
      transform: translateX(-50%);
      top: 52px;
    }
    .bottom-top-span {
      height: 20px;
      margin-left: 10px;
      font-weight: 600;
      font-size: 30px;
      color: #ffffff;
      line-height: 20px;
      text-align: left;
      font-style: normal;
    }
    .bottom-bottom {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 98px;

      height: 20px;
      font-weight: 500;
      font-size: 18px;
      color: #ffffff;
      line-height: 20px;
      text-align: left;
    }
    .center-google-icon {
      width: 272px;
      height: 80px;
      cursor: pointer;
      place-self: center;
      display: flex;
      margin-top: 18px;
    }
    .center-text {
      margin-left: 14px;
      font-weight: 500;
      font-size: 24px;
      color: #000000;
      line-height: 35px;
      text-align: left;
    }
    .center-title {
      margin-left: 14px;
      width: 100%;
      height: 58px;
      font-weight: 600;
      font-size: 40px;
      color: #000000;
      line-height: 58px;
      text-align: left;
      font-style: normal;
    }
    .carousel {
      position: relative;
    }
    .carousel-img {
      width: 282px !important;
      height: 592px !important;
    }
    .carousel-indicators {
      position: absolute;
      bottom: -47px;
      width: 25%;
      left: 50%;
    }

    /* 轮播容器 */
    .custom-carousel {
      position: relative;
      width: 282px;
      height: 592px;
      margin: 0 auto;
      overflow: hidden;
    }

    /* 轮播滑动区域 */
    .carousel-container {
      position: relative;
      width: 100%;
      height: 93%;
    }

    /* 轮播幻灯片 */
    .carousel-slides {
      display: flex;
      height: 100%;
      transition: transform 0.5s ease-in-out;
    }

    .carousel-slide {
      min-width: 100%;
      height: 100%;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* 轮播控制按钮 */
    .carousel-control {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      opacity: 0.7;
      transition: opacity 0.3s;
    }

    .carousel-control:hover {
      opacity: 1;
    }

    .prev {
      left: 10px;
    }

    .next {
      right: 10px;
    }

    /* 轮播指示器 */
    .carousel-dots {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 9990;
    }

    .carousel-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .carousel-dot.active {
      background-color: #fff;
    }

    .center {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      width: 100%;
      max-width: 1200px;
      margin: 3% auto 0;
      padding: 0 20px;
      position: relative;
    }

    .top-image {
      margin: 50px auto 0;
      width: 100%;
      max-width: 580px;
      height: 420px;
      background-image: url("https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_talk.png");
      background-size: cover;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
    }

    .custom-carousel {
      position: relative;
      width: 282px;
      height: 592px;
      /* margin: 206px auto 0; */
      overflow: hidden;
    }

    /* 响应式适配 */
    @media (max-width: 768px) {
      .top-image {
        height: 350px;
        margin-top: 50px;
      }
      .custom-carousel {
        height: 500px;
        margin-top: 50px;
      }
      .center-title {
        font-size: 32px;
      }
    }

    @media (max-width: 480px) {
      .top-image {
        height: 300px;
      }
      .custom-carousel {
        width: 100%;
        max-width: 282px;
        height: 450px;
      }
      .center-text {
        font-size: 16px;
      }
    }
  </style>

  <body>
    <div
      class="row"
      style="
        height: 112px;
        width: 100%;
        background: #800aeb;
        margin-left: 0%;
        margin-right: 0%;
      "
    >
      <div
        class="col-lg-6 col-md-6 col-sm-12 mb-sm-4"
        style="
          padding-left: 20%;
          display: flex;
          align-items: center;
          height: 100%;
        "
      >
        <img
          src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_logo.png"
          style="width: 296px; height: 60px"
        />
      </div>
    </div>

    <div class="bg-container bg-image">
      <div
        class="d-flex text-center justify-content-center"
        style="padding-top: 3%; color: white; font-size: 20px"
      >
        <span>
          <a
            href="https://ink.getpinko.com/apple/privacy-policy/molly"
            style="color: inherit"
            >Privacy Policy</a
          >&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: inherit">|</span>&nbsp;
          <a
            href="https://ink.getpinko.com/apple/agreement/molly"
            style="color: inherit"
            >Terms of Service</a
          >&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: inherit">|</span>&nbsp;
          <a
            href="https://ink.getpinko.com/apple/terms-conditions/molly"
            style="color: inherit"
            >Child safety Policy</a
          >
        </span>
      </div>

      <div class="center" style="margin-top: 3%">
        <div class="top-image">
          <div>
            <p class="center-title">App introduction</p>
            <br />
            <p
              class="center-text"
              style="font-size: 18px; text-align: left; color: black"
            >
              Welcome to Memu Live, the vibrant social app designed to connect
              you with friends and new faces from around the world! Whether
              you’re looking to maintain long-distance friendships or simply
              have fun, Memu Live has everything you need to make meaningful
              connections and memorable moments.
            </p>

            <img
              class="center-google-icon"
              id="center-google-icon"
              src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_google.png"
              @click="clickGoogle"
            />
          </div>
        </div>

        <div class="custom-carousel">
          <div class="carousel-container">
            <div class="carousel-slides" id="carouselSlides">
              <div class="carousel-slide">
                <img
                  src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_carousel_1.png"
                  alt="App screenshot 1"
                />
              </div>
              <div class="carousel-slide">
                <img
                  src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_carousel_2.png"
                  alt="App screenshot 2"
                />
              </div>
              <div class="carousel-slide">
                <img
                  src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_carousel_3.png"
                  alt="App screenshot 3"
                />
              </div>
              <div class="carousel-slide">
                <img
                  src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_carousel_4.png"
                  alt="App screenshot 4"
                />
              </div>
            </div>

            <!-- 轮播控制按钮 -->
            <!-- <button class="carousel-control prev" id="prevBtn">
              <i class="fa fa-chevron-left"></i>
            </button>
            <button class="carousel-control next" id="nextBtn">
              <i class="fa fa-chevron-right"></i>
            </button> -->
          </div>

          <!-- 轮播指示器 -->
          <div class="carousel-dots" id="carouselDots"></div>
        </div>
        <!-- <div class="carousel-dots" id="carouselDots"></div> -->
      </div>

      <div class="f-view">
        <div class="bottom-top">
          <img
            src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_mail.png"
            style="width: 28px; height: 28px"
          />
          <span class="bottom-top-span">Contact Us</span>
        </div>
        <span class="bottom-bottom">orchid.lisa.pang@outlook.com</span>
        <img
          src="https://s3.ap-southeast-1.amazonaws.com/v.folo.cool/chatroom_bgpic/memu_bottom.png"
          style="width: 100%; height: 100%"
        />
      </div>
    </div>
    <script>
      document.addEventListener("DOMContentLoaded", () => {
        // 获取DOM元素
        const slides = document.querySelectorAll(".carousel-slide");
        const slidesContainer = document.getElementById("carouselSlides");
        const dotsContainer = document.getElementById("carouselDots");
        const prevBtn = document.getElementById("prevBtn");
        const nextBtn = document.getElementById("nextBtn");

        // 轮播配置
        let currentIndex = 0;
        const slideCount = slides.length;
        let interval;

        // 创建轮播指示器
        function createDots() {
          for (let i = 0; i < slideCount; i++) {
            const dot = document.createElement("div");
            dot.classList.add("carousel-dot");
            if (i === currentIndex) {
              dot.classList.add("active");
            }
            dot.addEventListener("click", () => {
              goToSlide(i);
            });
            dotsContainer.appendChild(dot);
          }
        }

        // 切换到指定幻灯片
        function goToSlide(index) {
          if (index < 0) index = slideCount - 1;
          if (index >= slideCount) index = 0;

          currentIndex = index;
          updateSlidePosition();
          updateDots();
          resetInterval();
        }

        // 更新幻灯片位置
        function updateSlidePosition() {
          slidesContainer.style.transform = `translateX(-${
            currentIndex * 100
          }%)`;
        }

        // 更新指示器状态
        function updateDots() {
          const dots = document.querySelectorAll(".carousel-dot");
          dots.forEach((dot, index) => {
            if (index === currentIndex) {
              dot.classList.add("active");
            } else {
              dot.classList.remove("active");
            }
          });
        }

        // 自动播放
        function startAutoPlay() {
          interval = setInterval(() => {
            goToSlide(currentIndex + 1);
          }, 3000);
        }

        // 重置自动播放计时器
        function resetInterval() {
          clearInterval(interval);
          startAutoPlay();
        }

        // 初始化轮播
        function initCarousel() {
          createDots();
          startAutoPlay();

          // 添加按钮事件监听
          prevBtn.addEventListener("click", () => goToSlide(currentIndex - 1));
          nextBtn.addEventListener("click", () => goToSlide(currentIndex + 1));

          // 添加触摸滑动支持
          let touchStartX = 0;
          let touchEndX = 0;

          slidesContainer.addEventListener(
            "touchstart",
            (e) => {
              touchStartX = e.changedTouches[0].screenX;
              clearInterval(interval);
            },
            false
          );

          slidesContainer.addEventListener(
            "touchend",
            (e) => {
              touchEndX = e.changedTouches[0].screenX;
              handleSwipe();
              startAutoPlay();
            },
            false
          );

          function handleSwipe() {
            const swipeThreshold = 50;
            if (touchEndX - touchStartX > swipeThreshold) {
              goToSlide(currentIndex - 1);
            }
            if (touchEndX - touchStartX < -swipeThreshold) {
              goToSlide(currentIndex + 1);
            }
          }
        }

        // 启动轮播
        initCarousel();
      });
    </script>
  </body>
</html>
